package com.lightjet.macross.base.log.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.lightjet.macross.common.core.IntKeyBaseEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;


// 日志内容表
@Entity
@Table(name="LOG_CONTENT")
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler","createDate","updateDate"})
public class LogContent extends IntKeyBaseEntity {

    public LogContent(Integer id) { this.id = id; }

    @OneToOne
    @JoinColumn(name="indexid")
    private LogIndex logIndex;
    // 日志内容 具体记录Post Put Delete 方法
    @Lob
    private String content;

    @Column(length = 1000)
    private String paramtypes;

    @Column(length = 3000)
    private String paramvalues;
}
